package com.fsj.miniapp.states;

public enum CountRoleState {
    CHARTERED(1),
    HOUR(2),
    HOUR_INTERVAL(3);

    private int countRoleId;

    private CountRoleState(int countRoleId) {
        this.countRoleId = countRoleId;
    }

    public static CountRoleState getValue(int intValue) {
        for (CountRoleState value : CountRoleState.values()) {
            if (value.getCountRoleId() == intValue) {
                return value;
            }
        }
        return null;
    }

    public int getCountRoleId() {
        return countRoleId;
    }
}
